package com.yilin.medical.utils;

import android.util.Base64;

public class JxBase64 {
	 public static String encodeBase64String(String str) { 
		 byte[] encode = Base64.encode(str.getBytes(), Base64.DEFAULT);

		 return new String(encode);
	 }

    public static String decodeBase64String(String str) {
        byte[] decode = Base64.decode(str.getBytes(), Base64.DEFAULT);

        return new String(decode);
    }

}
